package com.eurasia.assignment.infrastructure.repository;


import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import com.eurasia.assignment.infrastructure.entity.ClassEntity;

/**
 * 班级数据访问接口
 * 提供班级相关的数据库操作
 */
@Repository
public interface ClassRepository extends JpaRepository<ClassEntity, Long> {
    boolean existsByClassName(String className);
    
    boolean existsByClassNameAndIdNot(String className, Long id);
} 